********************************************************************************
*THE FILE CREATE ANNOUNCEMENT (NUMD 1) OR 12-MONTH WINDOW (NUMB 12) DUMMIES FOR
*YEAR 2019/2015
********************************************************************************
type RO_tdummies.do
args year numd

if `year'==2019 {
	if `numd'==1 {
	noisily display "Creating announcement time dummy (2019)"
	gen byte dT7=(time==tm(2019m9))
	}
	if `numd'==12 {
	noisily display "Creating 12-window time dummies (2019)"
	gen byte dT1=(time==tm(2019m3))
	gen byte dT2=(time==tm(2019m4))
	gen byte dT3=(time==tm(2019m5))
	gen byte dT4=(time==tm(2019m6))
	gen byte dT5=(time==tm(2019m7))
	gen byte dT7=(time==tm(2019m9))
	gen byte dT8=(time==tm(2019m10))
	gen byte dT9=(time==tm(2019m11))
	gen byte dT10=(time==tm(2019m12))
	gen byte dT11=(time==tm(2020m1))
	gen byte dT12=(time==tm(2020m2))
	}
}

if `year'==2015 {
	if `numd'==1 {
	noisily display "Creating announcement time dummy (2015)"
	gen byte dT7=(time==tm(2015m1))
	}
	if `numd'==12 {
	noisily display "Creating 12-window time dummies (2015)"
	gen byte dT1=(time==tm(2014m7))
	gen byte dT2=(time==tm(2014m8))
	gen byte dT3=(time==tm(2014m9))
	gen byte dT4=(time==tm(2014m10))
	gen byte dT5=(time==tm(2014m11))
	gen byte dT7=(time==tm(2015m1))
	gen byte dT8=(time==tm(2015m2))
	gen byte dT9=(time==tm(2015m3))
	gen byte dT10=(time==tm(2015m4))
	gen byte dT11=(time==tm(2015m5))
	gen byte dT12=(time==tm(2015m6))
	}
}

